<!DOCTYPE html>
<html lang="zh">
    <head>
        <title>{{Get_Name}}</title>
        <link rel="stylesheet" href="/adminlte/plugin/fontawesome-free/css/all.min.css">
        <link rel="stylesheet" href="/adminlte/css/adminlte.min.css">
    </head>
    <body>
        <div class="wrapper">
            <nav class="main-header navbar navbar-expand navbar-white navbar-light">
                <!-- Left navbar links -->
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
                    </li>
                    <li class="nav-item d-none d-sm-inline-block">
                        <a href="{{Get_Prefix}}" class="nav-link">主页</a>
                    </li>
                </ul>

                <!-- Right navbar links -->
                <ul class="navbar-nav ml-auto">
                    <!-- Navbar Search -->
                    <li class="nav-item">
                        <a class="nav-link" data-widget="navbar-search" href="#" role="button">
                            <i class="fas fa-search"></i>
                        </a>
                        <div class="navbar-search-block">
                            <form class="form-inline" method="get" action="{{Get_SearchPath}}">
                                <div class="input-group input-group-sm">
                                    <input class="form-control form-control-navbar" name="text" type="search" placeholder="搜索内容" aria-label="Search">
                                    <div class="input-group-append">
                                        <button class="btn btn-navbar" type="submit">
                                            <i class="fas fa-search"></i>
                                        </button>
                                        <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                                            <i class="fas fa-times"></i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </li>
                    <!-- Notifications Dropdown Menu -->
                    <li class="nav-item dropdown">
                        <a class="nav-link" data-toggle="dropdown" href="#">
                            <i class="far fa-bell"></i>
                            {{if ne Get_MessageNum 0}}
                            <span class="badge badge-warning navbar-badge">{{Get_MessageNum}}</span>
                            {{end}}
                        </a>
                        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
                            <span class="dropdown-item dropdown-header">{{Get_MessageNum}} 条 通知</span>
                            {{range Get_Messages}}
                            <div class="dropdown-divider"></div>
                            <a href="{{.Href}}" class="dropdown-item">
                                <i class="fas fa-envelope mr-2"></i>{{.Text}}
                                <span class="float-right text-muted text-sm">{{.Time}}</span>
                            </a>
                            {{end}}
                            <div class="dropdown-divider"></div>
                        </div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
                            <i class="fas fa-expand-arrows-alt"></i>
                        </a>
                    </li>
                </ul>
            </nav>
            <aside class="main-sidebar sidebar-dark-primary elevation-4">
                <!-- Brand Logo -->
                <a href="{{Get_Prefix}}" class="brand-link">
                    <img src="{{Get_Logo}}" alt="Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
                    <span class="brand-text font-weight-light">{{Get_Name}}</span>
                </a>

                <!-- Sidebar -->
                <div class="sidebar">
                    <!-- Sidebar Menu -->
                    <nav class="mt-2">
                        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                            {{if Get_AsideMenus}}
                                {{range Get_AsideMenus}}
                                    {{if .Single}}
                                        <li class="nav-item">
                                            <a href="{{.Url}}" class="nav-link">
                                            <i class="nav-icon fas fa-{{.Icon}}"></i>
                                            <p>
                                                {{.Content}}
                                            </p>
                                            </a>
                                        </li>
                                    {{else}}
                            <li class="nav-item menu-open">
                                <a href="#" class="nav-link">
                                    <i class="nav-icon fas fa-{{.Icon}}"></i>
                                    <p>
                                        {{.Content}}
                                    </p>
                                    <i class="fas fa-angle-left right"></i>
                                </a>
                                <ul class="nav nav-treeview">
                                    {{range .Children}}
                                    <li class="nav-item">
                                        <a href="{{.Url}}" class="nav-link">
                                            <i class="fas fa-{{.Icon}} nav-icon"></i>
                                            <p>{{.Content}}</p>
                                        </a>
                                    </li>
                                    {{end}}
                                </ul>
                            </li>
                                    {{end}}
                                {{end}}
                            {{end}}
                        </ul>
                    </nav>
                    <!-- /.sidebar-menu -->
                </div>
                <!-- /.sidebar -->
            </aside>
            <div class="content-wrapper">
                <div class="content-header">
                    <div class="container-fluid">
                        <div class="row mb-2">
                            <div class="col-sm-6">
                                <h1 class="m-0">{{Get_Name}}</h1>
                            </div><!-- /.col -->
                            <div class="col-sm-6">
                                <ol class="breadcrumb float-sm-right">
                                    <li class="breadcrumb-item"><a href="{{Get_Prefix}}">Home</a></li>
                                </ol>
                            </div><!-- /.col -->
                        </div><!-- /.row -->
                    </div><!-- /.container-fluid -->
                </div>
                <div class="content">
                    {{embed}}
                </div>
            </div>
            <footer class="main-footer">
                {{Get_Footer}}
                <div class="float-right d-none d-sm-inline-block">
                    <b>Version</b> {{Get_Version}}
                </div>
            </footer>
        </div>
        <script src="/adminlte/plugin/jquery/jquery.min.js"></script>
        <script src="/adminlte/plugin/bootstrap/js/bootstrap.bundle.min.js"></script>
        <script src="/adminlte/js/adminlte.min.js"></script>
    </body>
</html>